package org.example.thread.thread01;

/**
 * @Auther:Liu
 * @Testname:Demo0401
 * @Date:2025/8/14 10:55
 */
public class Demo0401 implements Runnable {
    private Demo04 demo04;

    public Demo0401(Demo04 demo04) {
        this.demo04 = demo04;
    }

    @Override
    public void run() {
        for (int i = 0; i < 10; i++) {
            demo04.changeNUm();
        }
    }
}
